package com.adcc.loadsheet.billing.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created by zhaoml on 2020-04-01.
 */
@Configuration
public class SystemConfig {

    // 令牌前缀
    @Value("${tokenPrefix}")
    private String tokenPrefix;

    // 令牌失效时间
    @Value("${tokenExpiredTime}")
    private int tokenExpiredTime;

    // 加密算法
    @Value("${secretAlg}")
    private String secretAlg;

    // 加密密钥
    @Value("${secretKey}")
    private String secretKey;

    // 地服用户，部门，航司，机场等基础数据同步地址
    @Value("${baseURL}")
    private String baseURL;

    // 地服舱单名单数据同步地址
    @Value("${lsandpsURL}")
    private String lsandpsURL;

    // 自动生成帐单明细JOB生成的账单路径
    @Value("${automaticProcessingBillsPath}")
    private String automaticProcessingBillsPath;

    public String getTokenPrefix() {
        return tokenPrefix;
    }

    public int getTokenExpiredTime() {
        return tokenExpiredTime;
    }

    public String getSecretAlg() {
        return secretAlg;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public String getBaseURL() {
        return baseURL;
    }

    public String getLsandpsURL() {
        return lsandpsURL;
    }

    public String getAutomaticProcessingBillsPath() {
        return automaticProcessingBillsPath;
    }
}